import request from '@/utils/request'

// 查询汇总销售出库单列表
export function listSumsaleissuebill(query) {
  return request({
    url: '/settlementCenter/basebill/sumsaleissuebill/list',
    method: 'get',
    params: query
  })
}

// 查询汇总销售出库单详细
export function getSumsaleissuebill(id) {
  return request({
    url: '/settlementCenter/basebill/sumsaleissuebill/' + id,
    method: 'get'
  })
}

// 新增汇总销售出库单
export function addSumsaleissuebill(data) {
  return request({
    url: '/settlementCenter/basebill/sumsaleissuebill',
    method: 'post',
    data: data
  })
}

// 修改汇总销售出库单
export function updateSumsaleissuebill(data) {
  return request({
    url: '/settlementCenter/basebill/sumsaleissuebill',
    method: 'put',
    data: data
  })
}

// 删除汇总销售出库单
export function delSumsaleissuebill(id) {
  return request({
    url: '/settlementCenter/basebill/sumsaleissuebill/' + id,
    method: 'delete'
  })
}
